package com.cc8w.admins.service;


import com.cc8w.admins.mapper.PermssionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("permssionService")
@Transactional
public class PermssionService {
    @Autowired
    @Qualifier("permssionMapper")
    private PermssionMapper permssionMapper;

    public List queryPermissionsByUserName(String userName){
        return  permssionMapper.queryPermissionsByUserName(userName);

    }



}
